//
//  FirstVC.m
//  PlayerVH
//
//  Created by 彭冲 on 24/5/18.
//  Copyright © 2018年 彭冲. All rights reserved.
//

#import "FirstVC.h"
#import "PlayVideoVC.h"
#import "AAAVC.h"

@interface FirstVC ()

@end

@implementation FirstVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor orangeColor];
    
    UIButton *push = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    push.backgroundColor = [UIColor greenColor];
    [push addTarget:self action:@selector(pushVideo) forControlEvents:64];
    [self.view addSubview:push];
    
    UIButton *push2 = [[UIButton alloc] initWithFrame:CGRectMake(100, 250, 100, 100)];
    push2.backgroundColor = [UIColor redColor];
    [push2 addTarget:self action:@selector(pushNormol) forControlEvents:64];
    [self.view addSubview:push2];
}

- (void)pushVideo {
    
    PlayVideoVC *video = [[PlayVideoVC alloc] init];
    video.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:video animated:YES];
}

- (void)pushNormol {
    AAAVC *aa = [[AAAVC alloc] init];
    aa.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:aa animated:YES];
}

@end
